package com.greensuisse.console;

import java.util.Scanner;

import org.apache.commons.lang3.StringUtils;

public class Consolse {
	private static Scanner scanner = new Scanner(System.in);

	public static String readLine() {
		return scanner.nextLine();
	}

	public static String readLine(String message, String defaultValue) {
		System.out.println(String.format("%s:(%s)", message, defaultValue));
		String line = scanner.nextLine();
		if (StringUtils.isBlank(line))
			return defaultValue;
		return line;
	}

}
